Return

Edit Task: Dependencies

Description

The Dependencies attribute under EditTask will define the dependencies for a task. This command will delete any previous existing list of dependency constraints.

Parameters

Parameter Description
NofDuring

A number that represents the amount of defined "during" task constraints that must be met before this task can be assigned. Any previous list of dependency constraints will be deleted.

If the word "ALL" appears here, the number of "during" constraints that must be met is set to the number of "during" constraints defined in the definition list of the current command.

NofPredecessor

A number that represents the amount of defined "predecessor" task constraints that must be met before this task can be assigned.

If the word "ALL" appears here, the number of "predecessor" constraints that must be met is set to the number of "predecessor" constraints defined in the definition list of the current command.

TaskDependencies List of the remaining parameters in the table
TaskName A string of text of the name of the constraining task.
DependencyType Options are either "Pred" or "During", for either Predecessor or During type respectively.
MinAfterType Options are either "Start", "Stop", or "None". This value is required but is ignored if MinTimeAfter is None (not applicable).
MinTimeAfter A number representing seconds(millisecond fidelity) of the minimum time between definitions. If MinAfterType is set to None then the minimum time between constraint does not apply.
MaxAfterType The parameter options are either "Start", "Stop", or "None". This value is required but is ignored if maxAfterType is None (not applicable).
MaxTimeAfter The parameter is a number representing seconds(millisecond fidelity) of the maximum time between definitions. If MaxAfterType is set to None then the maximum time between constraint does not apply.

Examples

Make TaskB use TaskA as a predecessor dependency, with a minimum afterStop time of 0s and a maximum afterStop time of 20s

PATCH api/task/TaskB

Body:

{

"Dependencies" : {

"NofPredecessor" : "1",

"TaskDependencies" : {

"TaskName" : "TaskA",

"DependencyType" : "Pred",

"MinAfterType" : "Stop",

"MinTimeAfter" : "0",

"MaxAfterType" : "Stop",

"MaxTimeAfter" : "20" }

}

}